// TOWN SCRIPT
//    Town 5: Runed Pedestal

// This is the special encounter script for this town.
// The states INIT_STATE, EXIT_STATE, and START_STATE have
// meanings that are described in the documenation. States you write
// yourself should be numbered from 10-100.

begintownscript;

variables;

short i,choice;
short lead_char;

body;

beginstate INIT_STATE;
// This state called whenever this town is entered

 i = 0;
 while (i < 5) {
  if (char_ok(i)) {
   lead_char = i;
   i = 5;
  }
  else
   i = i + 1;
 }

if (get_sdf(1,12) == 0) {
 set_flag(1,12,1);
 message_dialog("You step through the gate and the world whirls around you. You receive a quick jolt immediately followed by another. The colors stop to swirl, and you find yourself outdoors on an old pedestal.","");
}
	
 set_crime_tolerance(1);

break;

beginstate EXIT_STATE;
// Always called when the town is left.
break;

beginstate START_STATE;


	
break;
